package system.entity;

import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import javax.persistence.*;
import lombok.Data;

@Table(name = "sys_role_permission")
@Data
public class SysRolePermission implements Serializable {
    /**
     * ID键
     */
    @Id
    @Column(name = "id")
    @ApiModelProperty(value = "ID键")
    private Integer id;

    /**
     * 角色ID
     */
    @Column(name = "role_id")
    @ApiModelProperty(value = "角色ID")
    private Integer roleId;

    /**
     * 权限标识
     */
    @Column(name = "permission_id")
    @ApiModelProperty(value = "权限标识")
    private String permissionId;

    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", roleId=").append(roleId);
        sb.append(", permissionId=").append(permissionId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}